package com.yb0os1.combination.clac;

import com.yb0os1.combination.clac.expression.Expression;
import com.yb0os1.combination.clac.expressionParser.ExpressionParser;

public class Test {
    public static void main(String[] args) {
        //1+15*( 9+4+(1 + 5)) +6
        int aaaa = 9;
        ExpressionParser expressionParser = new ExpressionParser("1+15*( aaaa+4+(1 + 5)) +6");
        expressionParser.variables.put("aaaa",aaaa);
        Expression calculate = expressionParser.calculate();
        System.out.println(calculate.getValue());
        System.out.println(1+15*( 9+4+(1 + 5)) +6);
    }
}
